﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
namespace Xwork.SEO.WebSite.Models
{
    public class ChangePasswordModel
    {
        [Required]
        [Display(Name="旧密码")]
        [Remote("CheckOldPassword","member",ErrorMessage="旧密码不正确")]
        public string OldPassword { get; set; }
        [Required]
        [Display(Name = "新密码")]
        public string NewPassword { get; set; }
        [Required]
        [Display(Name = "新密码重复")]
        [Compare("NewPassword", ErrorMessage = "两次新密码不相同")]
        public string NewPasswordRp { get; set; }
    }
}